package utils;

import java.io.*;

public class FileOp {

	public static void deleteFile(String filename) {
		File f = new File(filename);
		if (f.exists())
			f.delete();
	}
	
	public static void renameFile(String oldFilename, String newFilename) {
		File of = new File(oldFilename);
		File nf = new File(newFilename);
		
		if (nf.exists())
			nf.delete();
		of.renameTo(nf);
	}
}
